<template>
        <el-button type="primary" @click="del()">删 除</el-button>
</template>
<script>
import { mapGetters, mapActions } from "vuex";
import { successAlert, warningAlert } from "../utils/alert.js";
export default {
  props: [],
  components: {},
  data() {
    return {};
  },
  computed: {
    ...mapGetters({}),
  },
  methods: {
    ...mapActions({}),
    del(){
          this.$confirm('此操作将永久删除, 是否继续?', '提示', {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          type: 'warning'
        }).then(() => {
         this.$emit("del")
        }).catch(() => {
            warningAlert("已取消删除")      
        });
    }
  },
  mounted() {},
};
</script>
<style scoped>
</style>
